import 'package:flutter/material.dart';
import 'package:flutter_screenutil/screenutil.dart';

class UserInfoPage extends StatefulWidget {
  UserInfoPage({Key key}) : super(key: key);

  @override
  _UserInfoPageState createState() => _UserInfoPageState();
}

class _UserInfoPageState extends State<UserInfoPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: <Widget>[
          InkWell(
            child: Container(
              height: ScreenUtil().setHeight(300),
              decoration: BoxDecoration(color: Colors.red),
              child: Row(
                children: <Widget>[
                  SizedBox(
                    width: ScreenUtil().setWidth(30),
                  ),
                  ClipOval(
                    child: Image.network(
                      "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg",
                      width: 100,
                      height: 100,
                    ),
                  ),
                  SizedBox(
                    width: ScreenUtil().setWidth(30),
                  ),
                  Expanded(
                    flex: 8,
                    child: Container(
                      // height: ScreenUtil().setHeight(100),
                      child: Column(
                        mainAxisAlignment: MainAxisAlignment.center,
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: <Widget>[
                          Flexible(
                            child: Text(
                              '少年肩头挑着草长莺飞',
                              style: TextStyle(
                                  fontSize: ScreenUtil().setSp(30),
                                  color: Colors.white),
                            ),
                          ),
                          SizedBox(
                            height: ScreenUtil().setHeight(30),
                          ),
                          Text(
                            '17775483271',
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(28),
                                color: Colors.white),
                          ),
                        ],
                      ),
                    ),
                  )
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
  // Widget build(BuildContext context) {
  //   return Container(
  //     height: ScreenUtil().setHeight(300),
  //     decoration: BoxDecoration(color: Colors.red),
  //     child: ListTile(
  //       contentPadding: EdgeInsets.all(30),
  //       isThreeLine: true,
  //       leading: Container(
  //         height: ScreenUtil().setHeight(80),
  //         child: CircleAvatar(
  //           backgroundImage: NetworkImage(
  //               'https://wx2.sinaimg.cn/mw690/66fa6be4gy1fzd1sif9tuj218g0p143d.jpg'),
  //         ),
  //       ),
  //       title: Text(
  //         '我',
  //         style: TextStyle(color: Colors.white),
  //       ),
  //       subtitle: Text(
  //         '17775483271',
  //         style: TextStyle(color: Colors.white),
  //       ),
  //     ),
  //   );
  // }
}
